﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

/// <summary>
/// 隐患条款对应表
/// </summary>
[Table("QHSE_XY_D_CLAUSE_ASSOCIATION")]
public class QHSESysDangerClauseAssocition : EntityBase
{
    public QHSESysDangerClauseAssocition()
    {
    }

    /// <summary>
    /// ID
    /// </summary>
    [Column("CLAUSE_ASSOCIATION_ID")]
    [MaxLength(32)]
    [Key]
    public string Id { get; set; }


    /// <summary>
    /// 条款ID
    /// </summary>
    [Column("CLAUSE_ID")]
    [MaxLength(32)]
    public string? ClauseId { get; set; }

    /// <summary>
    /// 条款类别编码
    /// </summary>
    [Column("CLAUSE_TYPE_CODE")]
    [MaxLength(32)]
    public string? ClauseTypeCode { get; set; }
    /// <summary>
    /// 隐患类别ID
    /// </summary>
    [Column("DANGER_CATEGORY_CODE")]
    [MaxLength(32)]
    public string? DangerCategoryCode { get; set; }
    /// <summary>
    /// 隐患级别编码
    /// </summary>
    [Column("DANGER_TYPE_CODE")]
    [MaxLength(32)]
    public string? DangerTypeCode { get; set; }
    /// <summary>
    /// 对应体系要素编码
    /// </summary>
    [MaxLength(32)]
    [Column("HSE_CODE")]
    public string? HSECode { get; set; }
}

